home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19971216-19980424
/
000303_news@newsmaster….columbia.edu _Wed Mar 18 10:33:53 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA09097
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 18 Mar 1998 10:33:53 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA19169
for kermit.misc@watsun; Wed, 18 Mar 1998 10:33:52 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: highlighting patterns on the screen in K95
Date: 18 Mar 1998 15:33:51 GMT
Organization: Columbia University
Lines: 49
Message-ID: <6eopgv$c6g$1@apakabar.cc.columbia.edu>
References: <6eojlt$kee$1@chagall.cti.nl>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8500
In article <6eojlt$kee$1@chagall.cti.nl>, Pim Zandbergen <pim@cti.nl> wrote:
: Is there some way in K95 to define patterns that, when they
: appear on the screen, are highlighted by K95 ?
:
: And if so, would it be possible to associate a command with that pattern
: and execute the command, passing along the pattern when clicking
: on this pattern, much like clicking on URL's ?
:
: I have seen this feature in a competing product, which I found
: very appealing. Unfortunately, the pattern matching language
: in this product is very limited. I would prefer regular expression
: pattern matching.
This is not a current feature. We will add it to the list.
What K95 does have is CONNECT mode triggers which cause CONNECT mode
to exited when any of a list of triggers is received from the host.
The controlling script may then use a SWITCH statement on \v(trigger)
to determine what should be done in response to the receipt of the
trigger.
If you can instruct the host application to perform the highlighting
then you can also use Kermit macros assigned to a mouses events to
perform special actions. The following variables and functions are
very useful for this purpose:
\v(mousecurx) - the current x coord of the mouse
\v(mousecury) - the current y coord of the mouse
\v(select) - if a drag event, the text selected
\fscrstr(ny,nx,n1)
ny = integer.
nx = integer.
n1 = integer.
Returns string:
The string at Terminal-screen coordinates (nx,ny), length n1,
blanks included.
Before the MouseURL Kverb was created I used to use the following
macro to perform a similar function:
define url run start \m(browser) \v(select),-
if terminal-macro connect
set mouse Button 1 Alt Drag \Kurl
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025 * (212) 854-1344
http://www.columbia.edu/kermit/k95.html * kermit-support@columbia.edu